package org.example.myleet.p540;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(2 == solution.singleNonDuplicate(new int[]{1,1,2,3,3,4,4,8,8}));
        Assert.isTrue(10 == solution.singleNonDuplicate(new int[]{3,3,7,7,10,11,11}));
        Assert.isTrue(10 == solution.singleNonDuplicate(new int[]{10}));
        Assert.isTrue(10 == solution.singleNonDuplicate(new int[]{9,9,10}));
        Assert.isTrue(3 == solution.singleNonDuplicate(new int[]{1,1,2,2,3}));
        Assert.isTrue(2 == solution.singleNonDuplicate(new int[]{1,1,2,3,3}));
        Assert.isTrue(9 == solution.singleNonDuplicate(new int[]{1,1,2,2,4,4,5,5,9}));
        Assert.isTrue(1 == solution.singleNonDuplicate(new int[]{1,2,2,4,4,5,5,9,9}));
    }
}
